import request from '@/utils/request'

// 获取题库列表
export const questionList = params => {
  return request({
    url: '/question/list',
    params
  })
}

// 删除题目
export const questionRemove = data => {
  return request({
    url: '/question/remove',
    method: 'post',
    data
  })
}

// 更改题目状态
export const questionStatus = data => {
  return request({
    url: '/question/status',
    method: 'post',
    data
  })
}

// 获取学科列表(暂时使用)
export const subjectList = params => {
  return request({
    url: '/subject/list',
    params
  })
}

// 新增题目
export const questionAdd = data => {
  return request({
    url: '/question/add',
    method: 'post',
    data
  })
}

// 编辑题目
export const questionEdit = data => {
  return request({
    url: '/question/edit',
    method: 'post',
    data
  })
}
